# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-dataset
_pkgname=dataset
pkgver=1.6.2
pkgrel=4
pkgdesc='Toolkit for Python-based data processing.'
arch=('any')
url='https://pypi.org/project/dataset/'
license=('MIT')
depends=('python' 'python-six' 'python-sqlalchemy' 'python-alembic'
         'python-normality')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('e86fd12c765ee9924ae39977da1233a366c52ab30e3e92a768fda1e3b9b5c52d53fdd1294d458344ccd4d8acae76d9248ef0c75d5ee9a9f11bc5b9c3108e6ae8')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

